#
# Copyright (C) 2016-2022 Xilinx, Inc. All rights reserved.
#
# Authors:
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
ccflags-y	+= -D_QDMA_DEBUGFS_

xocl_lib-y	:= ../lib/libxdma.o

xocl_lib-y	+=  \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/libqdma_config.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/libqdma_export.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_context.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_debugfs.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_debugfs_dev.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_debugfs_queue.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_descq.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_device.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_intr.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_mbox.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_platform.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_regs.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_sriov.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_st_c2h.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_thread.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/thread.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/xdev.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_access_common.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_list.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_mbox_protocol.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_resource_mgmt.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/eqdma_soft_access/eqdma_soft_access.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/eqdma_soft_access/eqdma_soft_reg_dump.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_soft_access/qdma_soft_access.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_cpm4_access/qdma_cpm4_access.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/qdma_cpm4_access/qdma_cpm4_reg_dump.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/eqdma_cpm5_access/eqdma_cpm5_access.o \
		../lib/libqdma/QDMA/linux-kernel/driver/libqdma/qdma_access/eqdma_cpm5_access/eqdma_cpm5_reg_dump.o

libfdt-y	:= ../lib/libfdt/fdt.o		\
		../lib/libfdt/fdt_addresses.o	\
		../lib/libfdt/fdt_empty_tree.o	\
		../lib/libfdt/fdt_overlay.o	\
		../lib/libfdt/fdt_ro.o		\
		../lib/libfdt/fdt_rw.o		\
		../lib/libfdt/fdt_strerror.o	\
		../lib/libfdt/fdt_sw.o		\
		../lib/libfdt/fdt_wip.o
